<template>
  <div>
    <h3>child</h3>
    <h3>{{ msg }}</h3>
  </div>
</template>

<script setup>
// 通过defineProps，接收props当中的数据
const props = defineProps({
  msg: {
    type: String,
    default: "123",
  },
});
console.log(props);
</script>

<style lang="scss" scoped>
</style>